import httpInstance from '@/utils/https.js'

// 设备信息
export const getOrderAPI = () => {
    return httpInstance({
        url: '/order/all',
        method: 'GET'
    })
}

// 设备信息
export const addOrderAPI = (data) => {
    return httpInstance({
        url: '/order/add',
        method: 'POST',
        data
    })
}

// 用户信息
export const getOrderByIdAPI = (userId) => {
    return httpInstance({
        url: '/order/byUser',
        method: 'GET',
        params: {
            userId: userId
        },
    })
}



